# 画花
import turtle


def Init():
    turtle.penup()  # 提起画笔（不画线）
    turtle.pendown()  # 放下画笔移动画笔开始绘制（画线）


def End():
    # 设置成画完不会自动退出
    turtle.done()


# 画花瓣
def Draw_Petals():
    turtle.fillcolor('yellow')
    turtle.begin_fill()  # 开始填充
    # 第一个
    turtle.right(61)
    turtle.circle(145, 30)
    turtle.left(100)
    turtle.circle(145, 30)

    # 第二个
    turtle.right(122)
    turtle.circle(145, 30)
    turtle.left(100)
    turtle.circle(145, 30)

    # 第三个
    turtle.right(122)
    turtle.circle(145, 30)
    turtle.left(100)
    turtle.circle(145, 30)

    # 第四个
    turtle.right(122)
    turtle.circle(145, 30)
    turtle.left(100)
    turtle.circle(145, 30)

    # 第五个
    turtle.right(122)
    turtle.circle(145, 30)
    turtle.left(100)
    turtle.circle(145, 30)

    # 第六个
    turtle.right(122)
    turtle.circle(145, 30)
    turtle.left(100)
    turtle.circle(145, 30)

    # 第七个
    turtle.right(122)
    turtle.circle(145, 30)
    turtle.left(100)
    turtle.circle(145, 30)

    # 第八个
    turtle.right(122)
    turtle.circle(145, 30)
    turtle.left(100)
    turtle.circle(145, 30)

    # 第九个
    turtle.right(122)
    turtle.circle(145, 30)
    turtle.left(100)
    turtle.circle(145, 30)

    turtle.end_fill()


# 画花蕊
def Draw_Blossom():
    turtle.right(60)
    turtle.fillcolor('red')
    turtle.begin_fill()  # 开始填充
    turtle.circle(100, 370)
    #                 半径  弧度(360为一周)
    turtle.end_fill()


# 画花杆
def Draw_Rod():
    # 往下
    turtle.right(82)
    turtle.fd(250)
    # 返回
    turtle.right(180)
    turtle.fd(80)


# 画叶片
def Draw_Leaves():
    turtle.fillcolor('green')
    turtle.begin_fill()

    # 第一个叶片
    turtle.right(120)
    turtle.circle(200, 50)
    turtle.left(130)
    turtle.circle(200, 50)

    # 往上移动
    turtle.right(110)
    turtle.fd(50)

    # 第二个叶片
    turtle.left(60)
    turtle.circle(200, 50)
    turtle.left(130)
    turtle.circle(200, 50)

    turtle.end_fill()


if __name__ == '__main__':
    # 初始化
    Init()

    # 画花瓣
    Draw_Petals()

    # 画花蕊
    Draw_Blossom()

    # 花杆
    Draw_Rod()

    # 叶片
    Draw_Leaves()

    # 结束
    End()